from django.utils.deprecation import MiddlewareMixin
from django_site import settings

class DisableCSRFMiddleware(MiddlewareMixin):
   def process_request(self, request):
       setattr(request, '_dont_enforce_csrf_checks', True)
